package com.dzk.cp.c11x5.catcher.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dzk.cp.c11x5.constant.C11x5Constants;
import com.dzk.cp.c11x5.dao.R5Dao;
import com.dzk.cp.c11x5.pojo.SdR5;
import com.dzk.cp.util.PropsUtils;

@Service("sdCodeCatcherService")
public class SdCodeCatcherServiceImpl extends CodeCatcherServiceImpl<SdR5> {
	
	@Resource(name="sdR5DaoJdbc")
	private R5Dao<SdR5> r5Dao;

	@Override
	protected Class<SdR5> getEntityClass() {
		return SdR5.class;
	}

	@Override
	protected R5Dao<SdR5> getR5Dao() {
		return r5Dao;
	}

	@Override
	protected String getByDateURL(Object... params) {
		return PropsUtils.getProperty(C11x5Constants.SD11X5_QUERY_BYDATE_URL, params);
	}

	@Override
	protected String getByIssueURL(Object... params) {
		return PropsUtils.getProperty(C11x5Constants.SD11X5_QUERY_BYISSUE_URL, params);
	}

}
